package day7.zuoye;

import java.util.Arrays;

public class Test03 {
    public static void main(String[] args) {
        int a[]=new int[10];
        int max=a[0];
        for(int i=0;i<a.length;i++){
            a[i]=(int)(Math.random()*100);
        }
        System.out.println(Arrays.toString(a));
        Arrays.sort(a);
        System.out.println(Arrays.toString(a));
        for (int i=0;i<a.length-1;i++){
            if (max<a[i]){
                max=a[i];
            }
        }
        System.out.println(max);

    }
}
